package com.nf.handler.columns;

import com.nf.MiniColumnHandler;

import java.sql.ResultSet;
import java.sql.SQLException;

public class MIniDoubleColumnHandler implements MiniColumnHandler {
    @Override
    public boolean metach(Class<?> propType) {
        return propType.equals(Double.class)||propType.equals(Double.TYPE);
    }

    @Override
    public Object apply(ResultSet rs, int pos) throws SQLException {
        return Double.valueOf(rs.getDouble(pos));
    }
}
